﻿#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;

inline int Add(int x, int y) {
	return x + y;
}

int main1() {
	
	cout << Add(1, 2) << endl;
	return 0;
}

int main2() {
	int a = 10;
	auto pa = &a;
	auto* pa1 = &a;
	cout << typeid(pa).name() << endl;
	cout << typeid(pa1).name() << endl;
	return 0;
}

void TestAuto()
{
	int a[] = { 1,2,3 };
	int b[] = { 0 };
}

void TestNULL(int* p) {
	cout << "int*" << endl;
}

void TestNULL(int p) {
	cout << "int" << endl;
}

int main3() {
	TestNULL(NULL);
	return 0;
}

class Date {
public:
	void Print() {
		cout << _year << "." << _month << "." << _day << endl;
	}

private:
	int _year;
	int _month;
	int _day;
};